package cn.redsoft.wechatapi.msg.req.generic;

import cn.redsoft.wechatapi.msg.req.RequestMsg;
import cn.redsoft.wechatapi.msg.req.RequestMsgType;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class ImageRequestMsg extends RequestMsg {

	@XStreamAlias("PicUrl ")
	protected String picUrl;

	@XStreamAlias("MediaId")
	protected String mediaId;

	public ImageRequestMsg() {
		this.msgType = RequestMsgType.IMAGE;
	}

	public ImageRequestMsg(String toUserName, String fromUserName,
			Long createTime, long msgId) {
		super(toUserName, fromUserName, createTime, null, msgId);
		this.msgType = RequestMsgType.IMAGE;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	@Override
	public String toString() {
		return "ImageRequestMsg [picUrl=" + picUrl + ", mediaId=" + mediaId
				+ ", toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + ", msgId=" + msgId + "]";
	}

}
